﻿package com.eshore.player;

public class PlatformSrvInfo {
	private String platformSrvIp = "0.0.0.0";
	private String platformSrvPort = "80";
	private String headerField = "";
	public static String PLATFORM_TYPE_ISHOW = "ishow";
	public static String PLATFORM_TYPE_EV = "ev";
	public static String CHANGE_PWD_ACTION = "http://{0}:{1}/mobileModifyPass.do?operId={2}&oldPwd={3}&newPwd={4}";
	public static String LOGIN_VERIFICATION = "http://{0}:{1}/login.do?userName={2}&password={3}&act=1";
	public static String LOGIN_VERIFICATION_TYPE_ISHOW = "&platform=ishow";
	public static String LOGIN_VERIFICATION_TYPE_EV = "&platform=ev";
	public static String LOGIN_VERIFICATION_TYPE_XPREEVIDEO = "http://{0}:{1}/SafetyCertification/LoginWithXml.php?Username={2}&Passwd={3}";
	public static String ISHOW_GET_ROOT_LIST = "http://{0}:{1}/nodeDeviceLeftTree.do?init=YES&userId={2}";
	public static String ISHOW_GET_NODE_LIST = "http://{0}:{1}/nodeDeviceLeftTree.do?deviceType={2}&parId={3}&userId={4}";
	public static String EV_GET_LIST = "http://{0}:{1}/pathInfo.do?act=query&userId={2}&parPathId={3}&reqType={4}";
	public static String EV_GET_LIST_REQTYPE_PC = "pc";
	public static String EV_GET_LIST_REQTYPE_MB = "mb";
	public static String EV_PUBLISH_CAM = "http://{0}:{1}/ev.do?act={2}&movieId={3}&quality={4}";
	public static String EV_PUBLISH_CAM_TYPE = "publishOper";
	public static String EV_UNPUBLISH_CAM_TYPE = "unpublish";
	public static String XPRESSVIDEO_PUBLISH_CAM = "http://{0}:{1}/Applications/ControlDev/CtrlRealVideo.php?id={2}";
	public static String XPRESSVIDEO_PUBLISH_CAM_TYPE = "on";
	public static String XPRESSVIDEO_UNPUBLISH_CAM_TYPE = "off";
	public static String XPRESSVIDEO_IR = "http://{0}:{1}/Applications/DevMp4/ctrldev.php?type={2}&cmd={3}";
	public static String ISHOW_PUBLISH_CAM = "http://{0}:{1}/mobileVideo.do?flag={2}&cameraId={3}&quality={4}";
	public static String ISHOW_PUBLISH_CAM_TYPE = "0";
	public static String ISHOW_UNPUBLISH_CAM_TYPE = "1";
	public static String ISHOW_GET_IMAGE = "http://{0}:{1}/Picture.jpg?width={2}&height={3}&deviceid={4}&streamserverip={5}&port={6}";
	public static String EV_GET_IMAGE = "http://{0}:{1}/Picture.jpg?width={2}&height={3}&deviceid={4}";
	public static String PTZ_SUCCESS = "success";
	public static String PTZ_ISHOW_FAILE = "connectFailed";
	public static String PTZ_EV_FAILE = "param error";
	public static String SET_COOKIE = "Set-Cookie";
	public static String GET_COOKIE = "Cookie";
	public static int CONNECT_TIMEOUT = 5000;
	public static int IMAGE_CONNECT_TIMESOUT = 10;
	public static String CONTROL_PTZ_ISHOW = "http://{0}:{1}/ishowptz.do?action={2}&videoid={3}";
	public static String CONTROL_PTZ_EV = "http://{0}:{1}/ptz.do?action={2}&videoid={3}&ctrFlag={4}";
	public static String UPDATE_CHECK_APPLICATION = "http://{0}:{1}/jsp/monitor/ocxversion.ini";
	public static String UPDATE_DOWNLOAD_APPLICATION = "http://{0}:{1}/clientSoftware/mpcab/AndroidEv.apk";

	public PlatformSrvInfo() {
		this.platformSrvIp = "0.0.0.0";
		this.platformSrvPort = "80";
		this.headerField = "";
	}

	public PlatformSrvInfo(String platformSrvIp, String platformSrvPort,
			String headerField) {
		super();
		this.platformSrvIp = platformSrvIp;
		this.platformSrvPort = platformSrvPort;
		this.headerField = headerField;
	}

	public String getPlatformSrvIp() {
		return platformSrvIp;
	}

	public void setPlatformSrvIp(String platformSrvIp) {
		this.platformSrvIp = platformSrvIp;
	}

	public String getPlatformSrvPort() {
		return platformSrvPort;
	}

	public String getHeaderField() {
		return headerField;
	}

	public void setHeaderField(String headerField) {
		this.headerField = headerField;
	}

	public void setPlatformSrvPort(String platformSrvPort) {
		this.platformSrvPort = platformSrvPort;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.platformSrvIp + ":" + this.platformSrvPort;
	}

}
